<!DOCTYPE html>
<html>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link href="/static/Skins/default/css/reset.css" rel="stylesheet" type="text/css">
<script src="/static/loadjs.js" type="text/javascript"></script>
<body>
<!--限制用户权限，5级以下用户受组织信息限制-->
<script type="text/javascript">
var tree = new MzTreeView("tree");
tree.icons["property"] = "property.gif";
tree.icons["css"] = "collection.gif";
tree.icons["book.gif"]  = "book.gif";
tree.setIconPath("/static/Skins/MzTree/MzTree/"); //可用相对路径
tree.nodes['0_网新本级']="text:网新本级;icon:css;method:select('0_网新本级')";
    %if i.uobj.userpower>5:
        %for data1 in i.recs:
            tree.nodes['网新本级_${data1.incname}']="text:${data1.incname};method:select('${data1.parentinc}_${data1.incname}')";
            %for data2 in i.optobj.getIncNameByParentInc(data1.incname):
                tree.nodes['${data1.incname}_${data2.incname}']="text:${data2.incname};method:select('${data1.incname}_${data2.incname}')";
            %endfor
        %endfor
    %else:
        tree.nodes['网新本级_${i.uobj.incname}']='text:${i.uobj.incname}';
        tree.nodes['${i.uobj.parentinc}_${i.uobj.incname}']="text:${i.uobj.incname};method:select('${i.uobj.parentinc}_${i.uobj.incname}')"
    %endif
        document.write(tree.toString()); 
</script>
<script type="text/javascript">
    function select(val){
        var rv={};
        var aa=val.split("_");
        rv.parentinc=aa[0];
        rv.incname=aa[1];
        window.returnValue=rv;
        window.close()
    }
</script>
</body>
</html>